.class final Lcom/a0soft/gphone/app2sd/main/r;
.super Landroid/widget/Filter;
.source "AppIconWnd.java"


# instance fields
.field final synthetic a:Lcom/a0soft/gphone/app2sd/main/q;


# direct methods
.method synthetic constructor <init>(Lcom/a0soft/gphone/app2sd/main/q;)V
    .locals 1
    .parameter

    .prologue
    .line 869
    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/a0soft/gphone/app2sd/main/r;-><init>(Lcom/a0soft/gphone/app2sd/main/q;B)V

    return-void
.end method

.method private constructor <init>(Lcom/a0soft/gphone/app2sd/main/q;B)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 869
    iput-object p1, p0, Lcom/a0soft/gphone/app2sd/main/r;->a:Lcom/a0soft/gphone/app2sd/main/q;

    invoke-direct {p0}, Landroid/widget/Filter;-><init>()V

    return-void
.end method


# virtual methods
.method protected final performFiltering(Ljava/lang/CharSequence;)Landroid/widget/Filter$FilterResults;
    .locals 7
    .parameter

    .prologue
    .line 873
    new-instance v0, Landroid/widget/Filter$FilterResults;

    invoke-direct {v0}, Landroid/widget/Filter$FilterResults;-><init>()V

    .line 875
    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/main/r;->a:Lcom/a0soft/gphone/app2sd/main/q;

    invoke-static {v1}, Lcom/a0soft/gphone/app2sd/main/q;->a(Lcom/a0soft/gphone/app2sd/main/q;)[Ljava/lang/String;

    move-result-object v1

    array-length v1, v1

    .line 877
    if-eqz p1, :cond_0

    invoke-interface {p1}, Ljava/lang/CharSequence;->length()I

    move-result v2

    if-nez v2, :cond_1

    .line 879
    :cond_0
    iput v1, v0, Landroid/widget/Filter$FilterResults;->count:I

    .line 880
    const/4 v1, 0x0

    iput-object v1, v0, Landroid/widget/Filter$FilterResults;->values:Ljava/lang/Object;

    .line 898
    :goto_0
    return-object v0

    .line 883
    :cond_1
    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v2

    .line 884
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3, v1}, Ljava/util/ArrayList;-><init>(I)V

    .line 885
    const/4 v4, 0x0

    :goto_1
    if-ge v4, v1, :cond_3

    .line 886
    iget-object v5, p0, Lcom/a0soft/gphone/app2sd/main/r;->a:Lcom/a0soft/gphone/app2sd/main/q;

    invoke-static {v5}, Lcom/a0soft/gphone/app2sd/main/q;->a(Lcom/a0soft/gphone/app2sd/main/q;)[Ljava/lang/String;

    move-result-object v5

    aget-object v5, v5, v4

    .line 888
    iget-object v6, p0, Lcom/a0soft/gphone/app2sd/main/r;->a:Lcom/a0soft/gphone/app2sd/main/q;

    invoke-static {v6}, Lcom/a0soft/gphone/app2sd/main/q;->b(Lcom/a0soft/gphone/app2sd/main/q;)Lcom/a0soft/gphone/app2sd/a/a;

    move-result-object v6

    invoke-virtual {v6, v5}, Lcom/a0soft/gphone/app2sd/a/a;->a(Ljava/lang/String;)Lcom/a0soft/gphone/app2sd/a/g;

    move-result-object v5

    .line 889
    invoke-virtual {v5}, Lcom/a0soft/gphone/app2sd/a/g;->a()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v5

    .line 890
    invoke-virtual {v5, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v5

    if-eqz v5, :cond_2

    .line 891
    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    invoke-virtual {v3, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 885
    :cond_2
    add-int/lit8 v4, v4, 0x1

    goto :goto_1

    .line 894
    :cond_3
    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v1

    iput v1, v0, Landroid/widget/Filter$FilterResults;->count:I

    .line 895
    iput-object v3, v0, Landroid/widget/Filter$FilterResults;->values:Ljava/lang/Object;

    goto :goto_0
.end method

.method protected final publishResults(Ljava/lang/CharSequence;Landroid/widget/Filter$FilterResults;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 905
    iget-object v0, p2, Landroid/widget/Filter$FilterResults;->values:Ljava/lang/Object;

    check-cast v0, Ljava/util/ArrayList;

    .line 907
    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/main/r;->a:Lcom/a0soft/gphone/app2sd/main/q;

    invoke-static {v1, v0}, Lcom/a0soft/gphone/app2sd/main/q;->a(Lcom/a0soft/gphone/app2sd/main/q;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    .line 908
    iget v0, p2, Landroid/widget/Filter$FilterResults;->count:I

    if-lez v0, :cond_0

    .line 909
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/r;->a:Lcom/a0soft/gphone/app2sd/main/q;

    invoke-virtual {v0}, Lcom/a0soft/gphone/app2sd/main/q;->notifyDataSetChanged()V

    .line 912
    :goto_0
    return-void

    .line 911
    :cond_0
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/r;->a:Lcom/a0soft/gphone/app2sd/main/q;

    invoke-virtual {v0}, Lcom/a0soft/gphone/app2sd/main/q;->notifyDataSetInvalidated()V

    goto :goto_0
.end method
